package com.boot.repository;

import com.boot.entity.CourseOpen;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;

@Transactional
@Repository
public interface CourseOpenRepository extends JpaRepository<CourseOpen, Integer>, JpaSpecificationExecutor<CourseOpen> {

    CourseOpen findByTermId(Integer termId);
}
